﻿import http from '@/utils/http';

export default {
    // 修改群公告
    updateGroupAnnouncement: (groupId: string, data: any) =>
        http({
            url: `/rest/api/group/updategroupannouncement/${groupId}`,
            loading: true,
            data,
            method: 'post',
        }),
    // 群公告详情
    getGroupAnnouncementDetail: (groupId: any, groupAnnouncementId: any) =>
        http({ url: `/rest/api/group/getgroupannouncementdetail/${groupId}/${groupAnnouncementId}`, loading: true }),
    // 删除群公告
    deleteGroupAnnouncementDetail: (groupId: any, groupAnnouncementId: any) =>
        http({
            url: `/rest/api/group/deletegroupannouncement/${groupId}/${groupAnnouncementId}`,
            loading: true,
            method: 'delete',
        }),
};
